< Prev(J) / Next(K) > / View :

Filename: /text/scalc/01/func_weeknum.xhp

(bookmark: bm_id3159161)
WEEKNUM function

WEEKNUM
(bookmark: bm_id3158403)

(variable: weeknum)WEEKNUM
(variable: weeknum)WEEKNUM(hd_id3159161.54)

WEEKNUM calculates the week number of the year for the internal date value.
WEEKNUM は、内部日付番号が、1 年の何週目であるかを返します。(par_id3149770.55)

Note Icon 注マーク The International Standard ISO 8601 has decreed that Monday shall be the first day of the week. A week that lies partly in one year and partly in another is assigned a number in the year in which most of its days lie. That means that week number 1 of any year is the week that contains the January 4th.
国際標準 ISO 8601 は、月曜を週の最初の日とすべきであると宣言しています。2 年にまたがる週には、日数が多いほうの年で番号が割り当てられます。つまり、どの年の 1 週目も、1 月 4 日を含みます。(par_idN105E4.)

Syntax
構文(hd_id3153055.56)

WEEKNUM(Number; Mode)
WEEKNUM(数値; モード)(par_id3147236.57)

Number is the internal date number.
数値 には日付のシリアル値を入力します。(par_id3147511.58)

Mode sets the start of the week and the calculation type.
モード で週の始まりや計算方法を指定します。(par_id3154269.59)

1 = Sunday
1 = 日曜日(par_id3148930.60)

2 = Monday
2 = 月曜日(par_id3154280.61)

Examples
(hd_id3146948.62)

=WEEKNUM("1995-01-01";1) returns 1
=WEEKNUM("1995-01-01";1) は、1 を返します。(par_id3150704.65)

=WEEKNUM("1995-01-01";2) returns 52. If the week starts on Monday, Sunday belongs to the last week of the previous year.
=WEEKNUM("1995-01-01";2) は、52 を返します。週が月曜から始まる場合、日曜は前年の最後の週に属します。(par_id3149792.64)


< Prev / Next >